package struts.action;

import struts.form.LoginForm;
import struts.init.RequestMapping;


@RequestMapping("/loginAction")
public class LoginAction {
	public LoginAction() {

	}
	
	@RequestMapping("/login")
	public String excute(LoginForm login) {
		if (login.getUsername().equals("success")) {
			return "/view/success.jsp";
		} else {
			return "/view/error.jsp";
		}
	}
}